package server.database.query;

import java.util.List;
import java.util.Map;

public class QueryResult implements IQueryResult
{
	private final int m_iResult;
	private final List<Map<String, String>> m_lstResults;
	private String m_sError;
	private int m_iAutoIncrementedValue;

	public QueryResult(int iResult, List<Map<String, String>> lstResults)
	{
		m_iResult = iResult;
		m_lstResults = lstResults;
	}

	@Override
	public int getResult()
	{
		return m_iResult;
	}

	@Override
	public List<Map<String, String>> getResultValues()
	{
		return m_lstResults;
	}

	@Override
	public void setError(String sError)
	{
		m_sError = sError;
	}

	@Override
	public String getError()
	{
		return m_sError;
	}

	@Override
	public int getAutoIncrementedValue()
	{
		return m_iAutoIncrementedValue;
	}

	@Override
	public void setAutoIncrementedValue(int iValue)
	{
		m_iAutoIncrementedValue = iValue;
	}
}
